package com.yzh.www.springboot;

import com.sun.prism.shader.Solid_TextureYV12_AlphaTest_Loader;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * rabbitmq
 * com.yzh.www
 *
 * @author 姚自豪
 * @create 2022-03-30 21:41
 */
@Component
@RabbitListener(queues = "boot_quene")
public class Consumer {

    @RabbitHandler
    public void Consumermethod(String message){

        System.out.println(message);
    }

}
